package com.example.boot3.rpc.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CalCController {
    @PostMapping("/getResult")
    public void test(){
        /*String expression="max(values)";
        //Double [] values ={1.2,2.4};
        List<Double> values =new ArrayList<>();
        values.add(1.2);
        values.add(2.4);
        Map<String,Object> map =new HashMap<>();
        map.put("values",values);
        *//*map.put("a",1.2);
        map.put("b",2.4);*//*
        Object o = TestCalc.calculateFormula(expression, map);

        System.out.println("o = " + o);*/
    }
}
